<template>
  <div class="home">
    <el-container>
      <el-header class="layout-header">
        <h1 style="color: antiquewhite;float: left">学子书城运营管理平台</h1>

      </el-header>
      <!-- 下半部分 -->
      <el-container class="layout-body">
        <!-- 下半部分的左侧边栏 -->
        <el-aside class="layout-aside">
          <el-menu
              router
              default-active="/sys-admin/index"
              class="el-menu-vertical-demo"
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b">
            <el-menu-item index="/sys-admin/index">
              <i class="el-icon-s-home"></i>
              <span slot="title">首页</span>
            </el-menu-item>
            <el-submenu index="6">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>权限管理</span>
              </template>
              <el-menu-item index="/sys-admin/admin/add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加管理员</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/admin/list">
                <i class="el-icon-user-solid"></i>
                <span slot="title">管理员列表</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/user/list">
                <i class="el-icon-user"></i>
                <span slot="title">用户列表</span>
              </el-menu-item>
            </el-submenu>
            <el-submenu index="5">
              <template slot="title">
                <i class="el-icon-s-shop"></i>
                <span>类别管理</span>
              </template>
              <el-menu-item index="/sys-admin/category/add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加类别</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/category/list">
                <i class="el-icon-s-operation"></i>
                <span slot="title">类别列表</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/navigation/add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加导航栏</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/navigation/list">
                <i class="el-icon-s-operation"></i>
                <span slot="title">导航栏列表</span>
              </el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-s-goods"></i>
                <span>商品管理</span>
              </template>
              <el-menu-item index="/sys-admin/album/add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加相册</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/album/list">
                <i class="el-icon-picture"></i>
                <span slot="title">相册管理</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/attribute/add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加属性</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/attribute/list">
                <i class="el-icon-s-operation"></i>
                <span slot="title">属性列表</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/product/spu-add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">新增SPU</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/product/spu-management">
                <i class="el-icon-s-grid"></i>
                <span slot="title">SPU台账</span>
              </el-menu-item>
            </el-submenu>
            <el-submenu index="9">
              <template slot="title">
                <i class="el-icon-s-order"></i>
                <span>订单管理</span>
              </template>
              <el-menu-item index="/sys-admin/orders/management">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">所有订单</span>
              </el-menu-item>
            </el-submenu>
            <el-submenu index="3">
              <template slot="title">
                <i class="el-icon-money"></i>
                <span>营销管理</span>
              </template>
              <el-menu-item index="/sys-admin/account/management">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">营销列表</span>
              </el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-s-ticket"></i>
                <span>活动管理</span>
              </template>
              <el-menu-item index="/sys-admin/banner/add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">新增轮播图</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/banner/list">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">轮播图列表</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/activity/add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">新增活动</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/activity/list">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">活动列表</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/announcement/add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">新增公告</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/announcement/list">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">公告列表</span>
              </el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
        <!-- 下半部分的右侧主体 -->
        <el-main>
          <!-- 将由其它视图组件显示右侧的主体部分 -->
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
body {
  background-color: #fff !important;
}

.layout-header {
  background-color: #06d9f5;
  line-height: 60px;
}

.layout-body {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
}

.layout-aside {
  background-color: #545c64;
}

.layout-aside i {
  color: #fff;
}

.el-menu-item.is-active {
  background-color: #f80653 !important;
}
</style>

<script>

</script>


